@file:OptIn(ExperimentalForeignApi::class)

package com.jetbrains.kmpapp.platform

import kotlinx.cinterop.CValue
import kotlinx.cinterop.ExperimentalForeignApi
import kotlinx.cinterop.useContents
import platform.CoreGraphics.CGSize
import platform.CoreGraphics.CGSizeMake
import platform.UIKit.UIScreen

val UIScreen.size: CValue<CGSize>
    get() = bounds.useContents { CGSizeMake(width = size.width, height = size.height) }